package cn.iocoder.yudao.module.ent.document.node;

import cn.iocoder.yudao.module.ent.document.BaseNode;
import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.util.ArrayList;
import java.util.List;

/**
 * 股东信息 节点
 */

@Document(indexName = "node_shareholder_info")
@Data
public class NodeShareholderInfo  extends BaseNode {

    //公司数据加密id
    @Field(name = "cid", type = FieldType.Keyword)
    private String cid;

    @Field(name = "create_time", type = FieldType.Text)
    private String createTime;

    @Field(name = "code", type = FieldType.Long)
    private Long code;

    //股东信息公司数据加密id
    @Field(name = "data_cid", type = FieldType.Text)
    private String dataCid;

    //人名,公司名称
    @Field(name = "name", type = FieldType.Text)
    private String name;

    //认缴出资日期
    @Field(name = "subDate", type = FieldType.Text)
    private String subDate;

    //认缴出资额
    @Field(name = "subMoney", type = FieldType.Text)
    private String subMoney;

    //持股数量(股)
    @Field(name = "subNum", type = FieldType.Text)
    private String subNum;

    //持股比例
    @Field(name = "subRate", type = FieldType.Text)
    private String subRate;

    //股份类型
    @Field(name = "subType", type = FieldType.Text)
    private String subType;

    //工商登记,最新公示
    @Field(name = "tabs_name", type = FieldType.Text)
    private String tabsName;

    //是否为历史记录
    @Field(name = "isHistoryData", type = FieldType.Integer)
    private Integer isHistoryData;

//    @Field(name="labels", type = FieldType.Nested)
//    private List<Labels> labels;

    @Field(name = "labels", type = FieldType.Object)
    private ArrayList<Object> labels;


//    class Labels{
//
//        @Field(name="contentList", type = FieldType.Nested)
//        private List<ContentList> contentList;
//
//        //数据分类
//        @Field(name="text", type = FieldType.Text)
//        private String text;
//
//        class ContentList{
//            //详情内容
//            @Field(name="content", type = FieldType.Text)
//            private String content;
//
//            //详情标题
//            @Field(name="title", type = FieldType.Text)
//            private String title;
//        }
//    }

}
